FROM openanolis/anolisos:23

LABEL \
    maintainer="OpenAnolis AI SIG" \
    org.opencontainers.image.title="tensorflow-intel" \
    org.opencontainers.image.version="2.12.0-23-itex"

RUN dnf install anolis-epao-release -y
RUN dnf install tensorflow2-2.12.0-4.an23 libtensorflow_framework2-2.12.0-4.an23 -y

ARG TARGETARCH
RUN if [ "${TARGETARCH}" = "amd64" ]; \
then dnf install intel-extension-for-tensorflow -y ; \
fi

ENTRYPOINT ["/bin/bash"]
